<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt"  uri="http://java.sun.com/jsp/jstl/fmt" %>
<jsp:useBean id="now" class="java.util.Date" scope="page"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="<c:url value="/resources/js/jquery-3.4.1.min.js" />"></script>
<link href="<c:url value="/resources/bootstrap/bootstrap-4.4.1-dist/css/bootstrap.min.css" />" rel="stylesheet">
<script type="text/javascript" src="<c:url value="/resources/bootstrap/bootstrap-4.4.1-dist/js/bootstrap.min.js" />"></script>
<link href="<c:url value="/resources/bootstrap/bootstrap-4.4.1-dist/css/bootstrap.css" />" rel="stylesheet">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"  >
<title>项目维护</title>
</head>
<body>
    <div id="content">
		<nav aria-label="breadcrumb">
		  <ol class="breadcrumb">
		    <li class="breadcrumb-item"><a href="#">Home</a></li>
		    <li class="breadcrumb-item active" aria-current="page">项目维护</li>
		  </ol>
		</nav>
		<div>
	
		<form action="<c:url value="/project/editSubmit.do" />" method="post">
		          <div class="container-fluid">
		            <div class="row">
		                  <div class="col-12" style="text-align:right;margin-bottom:5px">
		                      <button type="submit" class="btn btn-primary">保存</button>
		                      <button type="button" class="btn btn-primary" onClick="history.back()">退出</button>
		                  </div>
		            </div>
		          </div>
		          <input type="hidden" name="id" value = "${project.id }">
				  <div class="form-row">
				    <div class="form-group col-md-6">
				      <label for="projectName">项目名称：</label>
				      <input type="text" class="form-control" required name="projectName" value="${project.projectName}" id="projectName" readOnly>
				    </div>
				    <div class="form-group col-md-6">
				      <label for="projectCode">项目编码</label>
				      <input type="text" name="projectCode"  placeholder="系统自动生成" class="form-control" value="${project.projectCode}" id="projectCode" readOnly>
				    </div>
				  </div>
				<div class="form-row">
					<div class="form-group col-md-6">
					      <label for="businessUnit">业务所属单位：</label>
					      <select id="businessUnit" required name="businessUnit" class="form-control">
					          <option value=""></option>
					          <option value="建筑北方" <c:if test="${project.businessUnit =='建筑北方' }">selected</c:if>>建筑北方</option>
					          <option value="建筑华东" <c:if test="${project.businessUnit =='建筑华东' }">selected</c:if>>建筑华东</option>
					          <option value="建筑西南" <c:if test="${project.businessUnit =='建筑西南' }">selected</c:if>>建筑西南</option>
					          <option value="建筑南方" <c:if test="${project.businessUnit =='建筑南方' }">selected</c:if>>建筑南方</option>
					          <option value="装饰北方" <c:if test="${project.businessUnit =='装饰北方' }">selected</c:if>>装饰北方</option>
					          <option value="装饰华东" <c:if test="${project.businessUnit =='装饰华东' }">selected</c:if>>装饰华东</option>
					          <option value="装饰西南" <c:if test="${project.businessUnit =='装饰西南' }">selected</c:if>>装饰西南</option>
					          <option value="装饰南方" <c:if test="${project.businessUnit =='装饰南方' }">selected</c:if>>装饰南方</option>
					          <option value="机电业务" <c:if test="${project.businessUnit =='机电业务' }">selected</c:if>>机电业务</option>
					          <option value="幕墙业务" <c:if test="${project.businessUnit =='幕墙业务' }">selected</c:if>>幕墙业务</option>
					      </select>
					</div>
			  </div>	
			  <div class="form-row">
				  <div class="form-group col-md-6">
				    <label for="created">创建时间：</label>
				    <input type="text" class="form-control" name="created" id="created" value="${project.created}" readOnly>
				  </div>
				  <div class="form-group col-md-6">
				    <label for="updated">修改时间：</label>
				    <input type="text" class="form-control" name="updated" value="${project.updated}" id="updated" readOnly>
				  </div>
			  </div>

		</form>
		</div>
    </div>
</body>
</html>